/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Christopher
 */
public abstract class ColaAbstracta<E> implements Queue<E>{
    private int tamano;
    
     /**
     * 
     * @param e
     * @return boolean
     */
    @Override
    public abstract boolean offer(E e);
    /**
     * 
     * @return E 
     */
    @Override
    public abstract E poll();
    /**
     * 
     * @return E 
     */
    @Override
    public abstract E peek();
    /**
     * 
     * @param tamano 
     */
    public void setTamano(int tamano){
        this.tamano = tamano;
    }
    /**
     * 
     * @return int
     */
    @Override
    public int size(){
        return tamano;
    }
    /**
     * 
     * @return boolean
     */
    @Override
    public boolean isEmpty(){
        if(tamano == 0){
            return true;
        }
        else{
            return false;
        }
    }
}
